<?php
/**
 * CountryOperator Model
 *
 * @property CountryOperator
 */
class CountryOperator extends AppModel {
/**
 * Display field
 *
 * @var string
 */
    /**
     * associations
     *
     * @var array
    **/

    var $belongsTo = array(
        'Country' => array(
            'className' => 'Country',
            'foreignKey' => 'country_id',
            'conditions' => '',
            'order' => '',
            'limit' => '',
            'dependent' => false
        )
    );

    function deleteCountryOperators($ids){
        $result = $this->updateAll(
            array('CountryOperator.deleted' => "'y'"),
            array('CountryOperator.id' => $ids)
        );
        return $result;
    }
}
